/**
 * AJAX请求通用接口
 */
function ajax(url, param, successFn, errorFn, dataType) {
	$.ajax( {
		url : url,
		data : param,
		type : "post",
		dataType : dataType,
		success : function(msg) {
			if (successFn != undefined && successFn != "")
				successFn(msg)
		},
		error : function(msg) {
			if (errorFn != undefined && errorFn != "")
				errorFn(msg)
		}
	})
}

/**
 * RADIO样式美化
 */
function radioCSS(elem,obj){
	var oo=obj.getElementsByTagName("input")[0];
	if(oo.checked) oo.checked=false;
	else oo.checked=true;
	var o=(document.getElementsByName(elem));
	var n=o.length;
	for (var i=0;i<n;i++){
		var oo=o[i];
		if(oo.checked==""||!oo.checked){
			oo.parentNode.className="radio_on";
		}else{
			oo.parentNode.className="radio_off";
		}
	}
}